home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Compression / Sledgehammer / Sledgehammer.app / Tools / uncompressdir < prev   
Text File  |  1992-03-31  |  301b  |  17 lines

  1. #!/bin/sh
  2. # @(#) $Revision: 66.1 $    
  3.  
  4. OPTIONS=
  5. FILES=
  6. for ARG
  7. do
  8.     case "$ARG" in
  9.     -*)    OPTIONS="$OPTIONS $ARG";;
  10.     *)    FILES="$FILES $ARG";;
  11.     esac
  12. done
  13. : ${FILES:=.}            # default to current directory
  14. set $FILES
  15. find $@ -type f -links 1 -size +0 -perm -400  \
  16.     -exec uncompress $OPTIONS {} \; >/dev/null
  17.